package com.ejbBeans;

import java.rmi.RemoteException;

import javax.ejb.EJBObject;

/**
 * @author Andrey_Guryanov
 * @version 1.6
 * @since 2011.0621
 */
public interface UserRemote extends EJBObject
{
    /**
     * This method get user Id from User Table.
     * @return User Id
     * @throws RemoteException
     */
    Integer getId() throws RemoteException;
    /**
     * This method set Id in User Table.
     * @param id user Id from external layer.
     * @throws RemoteException
     */
    void setId(Integer id) throws RemoteException;

    String getLogin() throws RemoteException;
	void setLogin(String name) throws RemoteException;
	
	String getPassword() throws RemoteException;
	void setPassword(String name) throws RemoteException;
	
	boolean getIsBanned() throws RemoteException;
	void setIsBanned(boolean isBanned) throws RemoteException;
}
